<template>
	<view class="container">
		<view class="content">
			<view class="question">{{ vdata.question }}</view>
			<rich-text class="answer" :nodes="vdata.answer"></rich-text>
		</view>
	</view>
</template>

<script setup>
	import { onLoad } from '@dcloudio/uni-app'
	import { reactive } from 'vue'
	const vdata = reactive({
		question: '',
		answer: ''
	})
	onLoad(({ question, answer }) => {
		vdata.question = question
		vdata.answer = decodeURIComponent(answer)
	})

</script>

<style lang="less" scoped>
	.container{
		width: 100%;
		min-height: 100vh;
		background: #f9f9f9;
		padding: 24rpx;
		box-sizing: border-box;
		position: relative;
		
		.content{
			background: #fff;
			border-radius: 25rpx;
			padding: 24rpx;
			
			.question{
				font-weight: bold;
				margin-bottom: 15rpx;
			}
		}
	}
</style>